<?php
namespace app\admin\validate;  //验证器所在的文件夹
use think\Validate;
class Article extends Validate 
{
	
    protected $rule =   [
        'title'  => 'require|unique:article',
        'cate_id' => 'require',
        'email' => 'email',
        // 'url'=>'url',
    ];
    
    protected $message  =   [
        'title.require' => '标题名称必须',
		'title.unique' => '标题名称不能重复',
		'cate_id.require' => '所属栏目不能为空',
    ];

 }
